<!--会员添加-->
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!-- 导入头部top文件 start -->
<%@include file="../common/header.jsp" %>
<body>
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox-title">
                <h5>公司地址</h5>
            </div>
            <div class="ibox-content">
                <form class="form-horizontal m-t" id="mainForm" method="post">
                    <input type="hidden" id="id" name="id" value="${model.id}"/>

                    <div class="form-group">
                        <label class="col-sm-3 control-label">城市：<span>*</span></label>

                        <div class="col-sm-8">
                            <input id="city" name="city" type="hidden" class="form-control"
                                   value="${model.city}">
                        </div>
                        <div class="col-sm-8">
                            <input id="cityName" name="cityName" type="text" class="form-control"
                                   required=""  value="${model.cityName}" aria-required="true">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">地址：*</label>

                        <div class="col-sm-8">
                            <input id="address" type="text" value="${model.address}" class="form-control"
                                   name="address"  required="" aria-required="true">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-3 control-label">是否默认：</label>

                        <div class="col-sm-8">
                            <select id="status" name="status">
                                <option value="1">未默认
                                </option>
                                <option value="2">默认
                                </option>
                            </select>
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-sm-4 col-sm-offset-3">
                            <button class="btn btn-primary" type="submit" id="idSubmit">提交</button>
                        </div>
                    </div>
                </form>
                <script src="/static/js/jquery.min.js?v=2.1.4"></script>
                <script src="/static/js/bootstrap.min.js?v=3.3.5"></script>
                <script src="/static/js/content.min.js?v=1.0.0"></script>
                <script src="/static/js/plugins/validate/jquery.validate.min.js"></script>
                <script src="/static/js/plugins/validate/messages_zh.min.js"></script>
                <script src="/static/js/plugins/dialog/dialog-min.js"></script>
                <script src="/static/js/plugins/dialog/dialog-plus-min.js"></script>
                <script src="/static/js/plugins/upload/jquery.uploadify.min.js"></script>
                <script src="/static/js/common.js?v=2.1.4"></script>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    var id = "${model.id}";
    var status = "${status}";
    var from = mainForm;
    $("#cityName").click(function () {
        var d = dialog({
            id: "dialog",
            title: '选择城市',
            url: '/user/company/address/dialog',
            ok: function () {
                var iframeWin = this.iframeNode.contentWindow;
                from.city.value = iframeWin.selectId;
                from.cityName.value = iframeWin.selectName;
            },
            width: 520,
            height:200
        }).show();
    });
</script>
<script src="/static/js/admin/userCompanyAddress.js"></script>
</body>
</html>
